package com.wochoose.jojo.ucm.biz.mybatis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wochoose.jojo.ucm.biz.mybatis.domain.UserLike;
import org.apache.ibatis.annotations.Select;

public interface UserLikeMapper extends BaseMapper<UserLike> {
    static final String BASE_COLUMN = "id, user_id, like_num, rcd_crt_time, rcd_mod_time, rcd_crt_user, rcd_mod_user,rcd_status";

    @Select({
        "select",
        BASE_COLUMN,
        "from user_like",
        "where user_id = #{userId,jdbcType=BIGINT} and rcd_status=0"})
    UserLike selectByUserId(Long userId);
}
